package com.ittable.datasource.route.dynamicdatasource;

/**
 * 多数据源类型枚举
 *
 * @author srh
 * @date 2020/12/20
 **/
public enum DynamicDataSourceTypeEnum {
    /**
     * 写
     */
    WRITE("write", "写数据源"),
    /**
     * 读
     */
    READ("read", "读数据源");

    private String code;

    private String desc;

    DynamicDataSourceTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public String toString() {
        return "DynamicDataSourceTypeEnum{" +
                "code='" + code + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }
}
